package com.four.service.impl;

import com.four.dao.ComentMapper;
import com.four.dao.StaffMapper;
import com.four.pojo.Coment;
import com.four.service.IComentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("comentService")
public class ComentService implements IComentService {
    @Autowired
    @Qualifier("comentMapper")
    private ComentMapper comentMapper;
    @Override
    public List<Coment> findAllComent() {
        return comentMapper.findAllComent();
    }

    @Override
    public List<Coment> findAllComentMen() {
        return comentMapper.findAllComentMen();
    }

    @Override
    public List<Coment> findHpMen() {
        return comentMapper.findHpMen();
    }

    @Override
    public List<Coment> findCpMen() {
        return comentMapper.findCpMen();
    }

    @Override
    public List<Coment> findHp() {
        return comentMapper.findHp();
    }

    @Override
    public List<Coment> findCp() {
        return comentMapper.findCp();
    }

    @Override
    public Coment findByIdComent(int rid) {
        return comentMapper.findByIdComent(rid);
    }
}
